package com.jvyou.house.mapper;

import com.jvyou.house.domain.HouseComment;

import java.util.List;

/**
 * 房屋评论Mapper接口
 *
 * @author Jvyou
 * @date 2024-09-17
 */
public interface HouseCommentMapper {
    /**
     * 查询房屋评论
     *
     * @param id 房屋评论主键
     * @return 房屋评论
     */
    public HouseComment selectHouseCommentById(Long id);

    /**
     * 查询房屋评论列表
     *
     * @param houseComment 房屋评论
     * @return 房屋评论集合
     */
    public List<HouseComment> selectHouseCommentList(HouseComment houseComment);

    /**
     * 新增房屋评论
     *
     * @param houseComment 房屋评论
     * @return 结果
     */
    public int insertHouseComment(HouseComment houseComment);

    /**
     * 修改房屋评论
     *
     * @param houseComment 房屋评论
     * @return 结果
     */
    public int updateHouseComment(HouseComment houseComment);

    /**
     * 删除房屋评论
     *
     * @param id 房屋评论主键
     * @return 结果
     */
    public int deleteHouseCommentById(Long id);

    /**
     * 批量删除房屋评论
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHouseCommentByIds(Long[] ids);
}
